import { IsNotEmpty } from 'class-validator';

export class SaveMenuDto {
  id: number | null;

  @IsNotEmpty({ message: '页面名称不能为空' })
  label: string;

  // @IsNotEmpty({ message: "路径不能为空" })
  path: string;

  isFolder: boolean;
  icon: string;
  parentId: number;
  sort: number;
  createdBy?: number;
}
